{template 'admin','header'}
<script language="javascript">
function next_select(obj)
{
	if(obj.checked==false)
	{
		return false;
	}
	var myid = obj.id;
	var myarray = myid.split('_');
	var len = myarray.length-1;
	
	var tmp = 't';
	for(i=1;i<len;i++)
	{
		tmp += '_'+myarray[i];
		document.getElementById(tmp).checked=true;
	}
}
</script>
{loop $list $r}
	{if $view_type==$r['view_type']}
		<strong>{$r['res_name']}</strong>
	{else}
		<a href="{$self_url}?action=resource&gid={$gid}&view_type={$r['view_type']}&forward={make_forward($forward)}"><strong>{$r['res_name']}</strong></a>
	{/if}
{/loop}
<form action="{URL}" method="POST" onsubmit="return r_submit(this);">
<table class="table_form">
	<caption>组权限设置</caption>
	<tr><th width="20%">组名称</th><td>{$info['g_name']}</td></tr>
	<tr>
		<th width="20%">资源权限</th>
		<td>
		{$res_list}<input type="hidden" name="gid" value="{$gid}"><input type="hidden" name="view_type" value="{$view_type}">
		</td>
	</tr>
	<tr><th></th><td><input type="submit" value="确定" class="button_style">&nbsp;<input class="button_style" onclick="self.location='{urldecode($forward)}'" type="button" value="返回"></td></tr>
</table>
</form>
{template 'admin','footer'}